<%@ include file="/common/taglibs.jsp"%>
<%@ page pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>app</title>
		<script type="text/javascript" src="${jquery}/jquery.js"></script>
		<link rel="stylesheet" href="${ztree}/ztree/zTreeStyle.css"
			type="text/css">
		<script type="text/javascript" src="${ztree}/jquery.ztree.core.js"></script>
	</head>
	<body>
		<div>
			<ul id="treeDemo" class="ztree"></ul>
		</div>
	</body>
</html>
<script LANGUAGE="JavaScript">
var setting = {
	data: {
		simpleData: {
			enable: true
		}
	},
	callback: {
		onClick: onClick
	}
};
function onClick(event, treeId, treeNode, clickFlag){
	parent.setFunctionInfo(treeNode.id,treeNode.name);
} 
$(document).ready(function(){
    var mmm = ${menu};
	$.fn.zTree.init($("#treeDemo"), setting,mmm);
});
</script>